<template>
  <div class="preparation-phase">
    <Countdown 
      :seconds="3" 
      text="训练即将开始"
      @complete="onCountdownComplete" />
  </div>
</template>

<script setup>
import Countdown from '@/components/Countdown.vue'

const emit = defineEmits(['countdownComplete'])

const onCountdownComplete = () => {
  emit('countdownComplete')
}
</script>

<style scoped>
.preparation-phase {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
</style>